Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preload images from nextProps in componentWillReceiveProps #87

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

bajceta
Copy link
Contributor

@bajceta bajceta commented Sep 26, 2017

When ImageCacheProvider receives new urlsToPreload it still uses the old list from this.props.
This PR passes the list of urls to preloadImages so the latest list is always used.

@kfiroo
Copy link
Owner

kfiroo commented Sep 26, 2017

@bajceta Thanks!

@kfiroo kfiroo merged commit 35b3616 into kfiroo:master Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants